﻿@functions {
	private object ModelValue
	{
		get
		{
			if (ViewData.TemplateInfo.FormattedModelValue
				== ViewData.ModelMetadata.Model)
			{
				return string.Format(CultureInfo.CurrentCulture, "{0:N}", ViewData.ModelMetadata.Model);
			}

			return ViewData.TemplateInfo.FormattedModelValue;
		}
	}
}

@Html.TextBox(string.Empty, ModelValue, new
											{
												@class = "input-small"
											})
@Cu